#include<stdio.h>
void main()
{
	int x,y;
	scanf("%d%d",&x,&y);
	printf("%d\n",x+y);
	printf("%d\n",x-y);
	printf("%f\n",(x+y)/2.0);
}